package com.pro.springbootpro.service.impl;

import com.pro.springbootpro.entity.SysUser;
import com.pro.springbootpro.mapper.SysUserMapper;
import com.pro.springbootpro.service.ISysUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author DJR (1210843430@qq.com)
 */
@Service
@Slf4j
public class SysUserServiceImpl implements ISysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser selectByUserName(String username) {
        return sysUserMapper.selectByUserName(username);
    }

    @Override
    public void save(SysUser sysUser) {
        sysUserMapper.save(sysUser);
    }
}
